xen/arm: flush_tlb_domain: Disable IRQ when flushing TLB of another domain
authorJulien Grall <julien.grall@linaro.org>
Fri, 17 Oct 2014 16:14:44 +0000 (17:14 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 20 Oct 2014 12:51:27 +0000 (13:51 +0100)
commit9bb013c878f2de645bb588938542d936e9bb2e58
tree6d64a42de81488eb40dc46cb0871a47c6e751eda
parenteaba79e0a7d5d918860c98f729540cb1ca2b9050
xen/arm: flush_tlb_domain: Disable IRQ when flushing TLB of another domain

When Xen is flushing the TLB for another domain than current, it has to
switch temporarily to the P2M of this domain. If IRQs are enabled, it may
be possible to receive an interrupt that requires the use the P2M of the current
domain, or even temporarily switch to another P2M.
For the former case, the translation would be wrong. For the latter one,
as the handler would restore the current P2M, Xen would flush the wrong domain
TLB.

Thankfully we don't have such interrupt handler, but it may be necessary
in the future to do that during when the user asks to dump domain stack via
a keystroke.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- spelling in the commit log ]
xen/arch/arm/p2m.c